package eu.floranet.arquivo.model.persistence.link;

import eu.floranet.arquivo.model.persistence.PersistenceLinkManager;

public class PersistenceLinkEntityHandler {

	public static PersistenceLinkManager persistenceLinkManager = null;
	public static String nameEntityManagerFactory = null;
	
	public PersistenceLinkEntityHandler() {
		super();
	}

	public PersistenceLinkEntityHandler(PersistenceLinkManager persistenceLinkManager, String nameEntityManagerFactory) {
		setPersistenceLinkManager(persistenceLinkManager);
		if(nameEntityManagerFactory == null){
			setNameEntityManagerFactory("defaultNameEntityManagerFactory");
		} else {
			setNameEntityManagerFactory(nameEntityManagerFactory);
		}
	}

	public PersistenceLinkManager getPersistenceLinkManager() {
		return persistenceLinkManager;
	}

	public void setPersistenceLinkManager(
			PersistenceLinkManager persistenceLinkManager) {
		PersistenceLinkEntityHandler.persistenceLinkManager = persistenceLinkManager;
	}

	public static String getNameEntityManagerFactory() {
		return nameEntityManagerFactory;
	}

	public static void setNameEntityManagerFactory(String nameEntityManagerFactory) {
		PersistenceLinkEntityHandler.nameEntityManagerFactory = nameEntityManagerFactory;
	}	
	
}
